from flask import Blueprint, render_template

template_router = Blueprint('name', __name__)


@template_router.route('/html/<name>')
def html_case(name):
    return render_template('demo.html', name=name)


@template_router.route('/html/person')
def person_info():
    person = {'name': 'Lucy',
              'age': 20,
              "gender": "female"
              }
    return render_template('person.html', person=person)


@template_router.route('/html/per')
def people_info():
    people = [
        {
            "name": "lily",
            "age": 18,
            "gender": "female"
        },
        {
            "name": "tom",
            "age": 19,
            "gender": "male"
        },
    ]
    return render_template('people.html', people1=people)


@template_router.route('/html/son')
def son():
    return render_template('son.html')



